package com.msb.mall.feign;

import com.msb.common.utils.R;
import com.msb.mall.vo.LoginVo;
import com.msb.mall.vo.SocialUser;
import com.msb.mall.vo.UserRegisterVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Author zhangjiajun
 * @Email zhangjiajun@hydsoft.com
 * @Description
 * @Date 2025/7/31 15:31
 */
@FeignClient("mall-member")
public interface MemberFeignService {

    @PostMapping("/member/member/register")
    R register(@RequestBody UserRegisterVO vo);


    @PostMapping("/member/member/login")
    R login(@RequestBody LoginVo vo);


    @PostMapping("/member/member/oauth/login")
    public R socialLogin(@RequestBody SocialUser vo);
}
